#version 450

layout(location=0) in vec2 v_Texcoord;
layout(location=1) in float v_ArrayIndex;

layout(set=0, binding=1) uniform sampler2DArray u_texture;

layout(location=0) out vec4 fragColor;

void main() {
    fragColor = texture(u_texture, vec3(v_Texcoord, v_ArrayIndex));
}